<?php
    /**
     * Created by PhpStorm.
     * User: Feixiang
     * Date: 2017/4/19
     * Time: 16:23
     */
    
    session_start();
    
    $name = 'admin';
    $PW = "admin"; // 这里是密码
    
    if(isset($_SESSION['user_icon'])) {
        $_SESSION['user_icon'] = $name;
    }
    elseif($_SESSION['pwd_icon']){
        $_SESSION['pwd_icon'] = $PW;
    
        echo '<script>alert("你已登录");
                window.href="../index.html";
                </script>';
        
        echo "Views=".$_SESSION['views'];
    }
    
    if ($_GET['user_icon']!=$name || $_GET['pwd_icon']!=$PW){
        echo '<script>alert("账号或者密码错误");

                window.history.back(-1);

                </script>';
        
    }else{
        header("Location:../index.html");
    }
    if ($_REQUEST['act'] == 'exit') {
     
        header("Location:../login.html");
        
        
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    $ur_here_lang = $_REQUEST['status'];